<h1 id="vgrename">vgrename</h1>
<p>使用vgrename命令可以重命名卷组的名称。</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>grename命令</strong> 可以重命名卷组的名称。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">vgrename [选项] [旧卷组路径|旧卷组名称|旧卷组UUID] [新卷组路径|新卷组名称]</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-d 启用调试模式
-t 启用测试模式</code></pre>
<h3 id="例子">例子</h3>
<p>重命名卷组/dev/vg1为/dev/vg2。</p>
<div class="sourceCode" id="cb3"><pre><code class="language-bash"><a class="sourceLine" id="cb3-1" data-line-number="1">[<span class="ex">root@localhost</span> ~]# vgrename /dev/vg1 /dev/vg2</a>
<a class="sourceLine" id="cb3-2" data-line-number="2">  <span class="ex">Volume</span> group <span class="st">&quot;vg1&quot;</span> successfullyrenamed to <span class="st">&quot;vg2&quot;</span></a></code></pre></div>
<p>重命名卷组vg1为vg2。</p>
<div class="sourceCode" id="cb4"><pre><code class="language-bash"><a class="sourceLine" id="cb4-1" data-line-number="1">[<span class="ex">root@localhost</span> ~]# vgrename vg1 vg2</a>
<a class="sourceLine" id="cb4-2" data-line-number="2">  <span class="ex">Volume</span> group <span class="st">&quot;vg1&quot;</span> successfully renamed to <span class="st">&quot;vg2&quot;</span></a></code></pre></div>
<!-- Linux命令行搜索引擎：https://jaywcjlove.github.io/linux-command/ -->
